//
//  ReadCell.m
//  Leisure
//
//  Created by 大展 on 16/6/29.
//  Copyright © 2016年 大展. All rights reserved.
//

#import "ReadCell.h"

@interface ReadCell ()
@property (weak, nonatomic) IBOutlet UIImageView *coverimg; // 背景图片
@property (weak, nonatomic) IBOutlet UILabel *name;   // 题目

@end

@implementation ReadCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

// 根据Model来设置cell的显示
- (void)setCellWithModel:(ReadModel *)model {

    self.name.text = model.name;
    [self.coverimg sd_setImageWithURL:[NSURL URLWithString:model.coverimg]];
}

@end
